package com.design.命令模式;

/**
 * 
 * @author yuxuan
 *
 */
public class CancelFruit implements Command {

	private Fruit fruit;

	public CancelFruit(Fruit fruit) {
		this.fruit = fruit;
	}
	
	@Override
	public void execute() {
		fruit.cancelFruit();
	}
	
}
